package cn.zysuyuan.item.service;

import cn.zysuyuan.common.entity.PageResult;
import cn.zysuyuan.item.entity.Role;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-17 18:36
 */
public interface RoleService {
    int save(Role role);

    int update(Role role);

    int assignPerms(Map<String, Object> map);

    int delete(String id);

    Map<String, Object> findById(String id);

    PageResult<Role> selectList(Map<String, Object> map);

    List<Role> findAll();

}
